<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>客户</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="css/skin.css" rel="stylesheet" type="text/css" />
<link href="css/table.css" rel="stylesheet" type="text/css" />

</head>

<body>
	<table width="70%" align="center">
		<tr>
			<td align="center"><a href="printclient">导出联系人</a>
			</td>
		</tr>

				<table border="1" cellspacing="0" width="70%" class="t1"
					align="center">

					<tr>
						<td width="3%">编号</td>
						<td width="10%">业务对象名</td>
						<td width="22%">业务对象介绍</td>
						<td width="15%">地址</td>
						<td width="10%">负责人</td>
						<td width="10%">联系方式</td>
						<td width="20%" align="center">操作</td>
					</tr>
					<s:iterator value="clientlist" id="client">
						<tr>
							<td><s:property value="#client.clientid" />
							</td>
							<td><s:property value="#client.name" />
							</td>
							<td><s:property value="#client.description" />
							</td>
							<td><s:property value="#client.location" />
							</td>
							<td><s:property value="#client.manager" />
							</td>
							<td><s:property value="#client.phone" />
							</td>
							<td><a
								href="<s:url action="showallbusiness">
		<s:param name="client.clientid" value="#client.clientid"></s:param></s:url>">
									查看业务 </a><a
								href="<s:url action="deleteclient">
						<s:param name="client.clientid" value="#client.clientid"></s:param></s:url>"
								onclick="return confirm('确定删除？')?true:false;">刪除</a> <a
								href="<s:url action="showoneclient">
						<s:param name="client.clientid" value="#client.clientid"></s:param></s:url>">修改</a>
							</td>
						</tr>



					</s:iterator>
					<tr>
					<td align="center" colspan="6">共<s:property
					value="session.clienttotalpage" />页&nbsp;&nbsp;&nbsp;第<s:property
					value="pageNow+1" />页&nbsp;&nbsp;&nbsp;<s:if test="pageNow>0">
					<a
						href="<s:url action="showallclient"><s:param name="pageNow"  value="pageNow-1"/></s:url>">上一页</a>&nbsp;&nbsp;&nbsp;</s:if>
				<s:if test="pageNow+1 !=#session.clienttotalpage">
					<a
						href="<s:url action="showallclient"><s:param name="pageNow" value="pageNow+1"/></s:url>">下一页</a>
				</s:if></td></tr>
				</table>
	</table>
</body>
</html>
